package com.hejia.config;

import com.payeco.config.PayEcoConfig;

/**
 * 易联支付开发环境配置
 * 
 * @author hyr
 *
 */
public class DevelopmentPayEcoConfig implements PayEcoConfig {

	// 商户编号，由易联产生，邮件发送给商户；编号有区分互联网金融类型
	private final String merchantId = "00000001";

	// 商户密钥
	private final String merchantKey = "5D38F98CC75A4B9D";

	// 商户接收订单通知接口地址；
	private final String merchantNotifyUrl = "http://183.131.0.221:8080/payeco/notify?ENCODING=utf-8"; // 外网测试地址

	// 商户RSA私钥，商户自己产生（可采用易联提供RSA工具产生）
	private final String merchantRsaPrivateKey = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAKpZJ9Rbd9LKg5jM4byOjLfGV2kFqctWDyAQNy+b0rFWOq8D+okjvLRGaRzUjuX28B9a03OmEwL7CW6WloCxr/g9t9WP5aGg1DKEb6biw/bsEDzG5681P39bv/ZlWTjfbg1KjDBaRqqjXK5l7XBAxxWFE7PaH6DuP+5kPR+IKiRbAgMBAAECgYAfDloAkRxrRZhwRwnwglyNNI/DCdFGzM29Hrew6kujIQFZ3vPSBL3mb9/B7c6PhlGIpdpe/ywAIxw5GSMfG0XlQ6umgPSsxF6TaRCXkBE1B1QYn5L4jVgHkszTRMCXkTybtaxEqEh6nhA6Krj4Y5ki1wpDpwHToTUYwz3RHuxdgQJBAN8hkxIhQ0ERALsrOWRZoishT9Ci5BxUtCYwKKw4Und1w3ywvxT28kDO2tp8aZ9/JVcHcRW04I+MmS0ZEPzGYNECQQDDcRpeVL6DLC/+fWhsUK6PixSmfH+roZURpJXlRPmQlxQwluoaQ2b/KUouujycnsphXIIpWHCZenfrJrS1yB1rAkBgU/lPOWb0fyempil3xi55mj7/3mLGTFcdqWrVttb7Va7YdOF5Zob9LZBUBKQAxH5VTRQn/9d2gYdbbdfkmKwRAkEAljVaP7/AAE64wE4gMIc98kLBZ0duVDnGuR2WuvPtHuyObt2+JNtC0L8qLYmjRfhgsL2JqD85oyvV+Jvx7XhU6wJBALIT5T+T3HdFRXlRAH12X74VXOnfHZ79sU/NNDBBtRN2AKfNo/I9g9xV7hZiVGTWEuDK8NImWYBU33PejWCZdS8="; // 互联网金融

	// 同步返回地址
	private final String merchantReturnUrl = "http://127.0.0.1:8080/payeco/syncnotify";

	// 易联服务器地址
	private final String payEcoUrl = "https://testmobile.payeco.com";

	// 订单RSA公钥（易联提供）
	private final String payEcoRsaPublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCRxin1FRmBtwYfwK6XKVVXP0FIcF4HZptHgHu+UuON3Jh6WPXc9fNLdsw5Hcmz3F5mYWYq1/WSRxislOl0U59cEPaef86PqBUW9SWxwdmYKB1MlAn5O9M1vgczBl/YqHvuRzfkIaPqSRew11bJWTjnpkcD0H+22kCGqxtYKmv7kwIDAQAB";

	// H5支付返回地址
	private final String h5ReturnUrl = "http://192.168.31.231/#/trade/";

	@Override
	public String getMerchantId() {
		return merchantId;
	}

	@Override
	public String getMerchantKey() {
		return merchantKey;
	}

	@Override
	public String getMerchantNotifyUrl() {
		return merchantNotifyUrl;
	}

	@Override
	public String getMerchantRsaPrivateKey() {
		return merchantRsaPrivateKey;
	}

	@Override
	public String getMerchantReturnUrl() {
		return merchantReturnUrl;
	}

	@Override
	public String getPayEcoUrl() {
		return payEcoUrl;
	}

	@Override
	public String getPayEcoRsaPublicKey() {
		return payEcoRsaPublicKey;
	}

	@Override
	public String getH5ReturnUrl() {
		return this.h5ReturnUrl;
	}
}